package records

import (
	"github.com/golib/mysql"
)

const RecordNameCmsTermInfo = "cms_term_info"

func init() {
	var r = &CmsTermInfo{}
	mysql.RegisterRecord(r.Name(), r)
}

type CmsTermInfo struct {
	TermId     int    `json:"termId" form:"termId" column:"term_id" primary:"true" modify:"false"`
	TermName   string `json:"termName" form:"termName" column:"term_name" modify:"true"`
	CourseNum  int    `modify:"true" json:"courseNum" form:"courseNum" column:"course_num"`
	Grade      int    `json:"grade" form:"grade" column:"grade" modify:"true"`
	TermStatus int    `json:"termStatus" form:"termStatus" column:"term_status" modify:"true"`
	CreateTime string `modify:"false" json:"createTime" form:"createTime" column:"create_time"`
	UpdateTime string `json:"updateTime" form:"updateTime" column:"update_time" modify:"false"`
}

func (r *CmsTermInfo) Name() string {
	return RecordNameCmsTermInfo
}
